<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*" %>
    <h1>张毅的第一个jsp</h1>
项目路径：<%=request.getContextPath() %>
<br>
项目真实路径：<%= request.getServletPath()%>
<br>
项目url:<%=request.getRequestURL() %>
<br>
<%
    response.setContentType("text/html;charset=UTF-8");
    out.println("响应编码：" + response.getCharacterEncoding() + "<br>");
    out.println("响应内容类型：" + response.getContentType() + "<br>");
    response.setStatus(HttpServletResponse.SC_OK);
    out.println("响应状态码：200 (OK)<br>");
%>



